package com.pkk.penguin.components.starter.rpc.response.configure;

import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author luffy
 * @description: 处理返回数据格式化报错
 * @date 2019-11-18 16:17
 */
@Configuration
public class JsonHttpMessageConverters {
  @Bean
  public HttpMessageConverters httpMessageConverters(){
    return new HttpMessageConverters(new FastJsonHttpMessageConverter());
  }
}
